#!/bin/bash


if [ $# != 0 ]
then
echo -e "\033[41;34m ERROR , check the shell log , bash -x $0 Tag \033[0m"
exit 0
fi

## if not root, abort
if [ "$USER" != root ];then
        echo "Please login as root, and try again!!!"
        exit 1
fi

export DEBIAN_FRONTEND=noninteractive 
export DEBCONF_NONINTERACTIVE_SEEN=true 

pkill -9 unattended-upgrade; apt-get update
apt-get -y install build-essential
apt-get -y install libssh2-1* numactl* hwloc lua5.1 


apt-get -y install readline-common  readline-doc
apt-get -y install rrdtool rrdtool-tcl


apt-get -y install ncurses-runtime ncurses-base ncurses-bin ncurses-dev ncurses-doc ncurses-term libncurses-dev
apt-get -y install man2html


apt-get -y install perl-*
apt-get -y install autoconf automake libtool libevent*


apt-get -y install freeipmi*
apt-get -y install ucx-utils


apt-get -y install bpfcc-lua bpfmon bpftrace bpfcc-tools bpfcc-introspection
apt-get -y install libcurl4-openssl-dev


apt-get -y install json*
apt-get -y install lz4*


apt-get -y install glib*
apt-get -y install numa* libnuma-dev


apt-get -y install libpam-cgroup
apt-get -y install libjson-parse-perl

# this not work for focal 
apt-get -y install jwt

apt-get -y install libhttp-parser*


apt-get -y install libyaml*
apt-get -y install rdma-core


apt-get -y install hdf5-helpers
apt-get -y install libhdf5*


apt-get -y install libnvidia-ml-dev
apt-get -y install libcxi*


apt-get -y install libreadline-dev libreadline-java
apt-get -y install libpam0g-dev libjson-c-dev libjwt-dev


apt-get -y install libfreeipmi*


apt-get -y install libdbus-1-dev libdleyna-connector-dbus-1.0-1 




apt-get -y install gtk+-2.0
apt-get -y install libglib2.0-dev


apt-get -y install libc++-dev


apt-get -y install *lua5.4*
apt-get -y install *lz4*


apt-get -y install libzfslinux-dev 
apt-get -y install librocm*


apt-get -y install *rrdtool*


apt-get -y install *ucx*
apt-get -y install libhwloc-dev

apt-get -y install libmariadb-dev-compat libmariadb-dev



apt-get -y install tetex-base tex-bin tetex-extras build-essential plotutils xfig latex-xft-fonts 

apt-get -y install ubuntu-scientist-*

apt-get -y install python3 python3-pip
apt-get -y install python3-numpy python3-matplotlib python3-scipy python3-pandas python3-simpy
apt-get -y install ipython3 ipython3-notebook

apt-get -y install python3-skimage
apt-get -y install libatlas-dev libatlas3gf-base
apt-get -y install build-essential cmake g++
apt-get -y install qtbase5-dev qtbase5-private-dev qttools5-dev qttools5-dev-tools 
apt-get -y install libqt5svg5-dev libargon2* libminizip-dev libbotan-2-dev libqrencode-dev 
apt-get -y install zlib1g-dev asciidoctor libreadline-dev libpcsclite-dev libusb-1.0-0-dev 
apt-get -y install libxi-dev libxtst-dev  libqt5x11extras5-dev


apt-get -y install wireguard
apt-get -y autoremove

systemctl disable ufw

### disable GUI
systemctl set-default multi-user.target


### enable GUI
# systemctl set-default graphical.target


echo "Well Done. Please reboot the server."

echo ""


